package admin

import (
	"github.com/gogf/gf/v2/frame/g"
	"miaoyu/internal/model/admin"
)

type MenuIndexReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
}
type MenuIndexRes struct {
}

type MenuListDoReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
}
type MenuListDoRes struct {
	g.Meta   `mime:"application/json"`
	MenuList []admin.MenuItemOutput `json:"menuList"`
}

type MenuAddReq struct {
	g.Meta   `method:"get" tags:"menu" summary:"menu"`
	ParentId int `p:"parentId"`
}
type MenuAddRes struct {
}
type MenuEditReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
	MenuId int `p:"menuId"  v:"required#菜单信息不能为空"`
}
type MenuEditRes struct {
}
type MenuSubmitDoReq struct {
	g.Meta     `method:"post" tags:"menu" summary:"menu"`
	MenuId     int    `p:"menuId"`
	Title      string `p:"title"`
	MenuType   int    `p:"menuType"`
	ParentId   int    `p:"parentId"`
	Path       string `p:"path"`
	PathParam  string `p:"pathParam"`
	PathMethod string `p:"pathMethod"`
	IsShow     int    `p:"isShow"`
	Status     int    `p:"status"`
	Bak        string `p:"bak"`
	OrderNum   int    `p:"orderNum"`
}
type MenuSubmitDoRes struct {
}
type MenuDelDoReq struct {
	g.Meta `tags:"menu" summary:"menu"`
	MenuId int `p:"menuId"`
}
type MenuDelDoRes struct {
}
